<?php foreach($member->getErrors() as $error):?>
<?php echo $error;?>
<?php endforeach;?>
<?php
$this->pageTitle=Yii::app()->name.'|修改密码';
?>

<fieldset class='div div-plain'>
	<h2 class='div'>更改密码</h2>
	<?php $form=$this->beginWidget('CActiveForm', array(
			'id'=>'session-form',
			'enableAjaxValidation'=>true,
			'htmlOptions'=>array(
					'class'=>'form-horizontal'
			)
		)); ?>

	<div class="control-group">
		<label class='control-label'><?php echo CActiveForm::labelEx($member, "oldpassword") ?>
		</label>
		<div class="controls">
			<?php echo CHtml::activeTextField($member,"oldpassword");?>
			<?php Utils::displayErr($member,"oldpassword");?>
		</div>
	</div>
	<hr />
	<div class="control-group">
		<label class='control-label'><?php echo CActiveForm::labelEx($member, "password") ?>
		</label>
		<div class="controls">
			<?php echo CHtml::activePasswordField($member,"password");?>
			<?php Utils::displayErr($member,"password");?>
		</div>
	</div>

	<div class="control-group">
		<label class='control-label'><?php echo CActiveForm::labelEx($member, "password2") ?>
		</label>
		<div class="controls">
			<?php echo CHtml::activeTextField($member,"password2");?>
			<?php Utils::displayErr($member,"password2");?>
		</div>
	</div>



	<div class="row clearfix">
		<div class="offset4">
			<input id="confirm" name="confirm" value="确定" type="submit"
				role="submit" class="btn success" />
		</div>
	</div>
	<?php $this->endWidget(); ?>
</fieldset>
